<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterAccount {
		/**
		 * Constructor of the presenter
		 */
		public function __construct() {}
		
		/**
		 * Method to execute to create a new	Account
		 */
		public function clickCreateAccount($account) {
			
			$GLOBALS['debug']->log("entro al presentador account");
			$command = CommandFactory :: createCommandCreateAccount($account['name'], 
				$account['description'], $account['mount'], $account['type']);
			$command -> execute();
			
			$GLOBALS['debug']->log("salio del presentador account");
			return $command -> getResult();
			
			
		  }
	}
?>